package com.lanchetech.dao;

import com.lanchetech.entity.ShareUserLevel;
import org.apache.ibatis.annotations.Mapper;

/**
* @author Ren
* @description 针对表【share_user_level(分享赚用户层级)】的数据库操作Mapper
* @createDate 2023-03-20 17:38:48
* @Entity com.lanchetech.entity.src.main.java.com.lanchetech.entity.domain.ShareUserLevel
*/
@Mapper
public interface ShareUserLevelMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ShareUserLevel record);

    int insertSelective(ShareUserLevel record);

    ShareUserLevel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShareUserLevel record);

    int updateByPrimaryKey(ShareUserLevel record);

    ShareUserLevel getRecentlyByUserId(Long userId);

    Long getRecentlyByHigherLevelUserId(long higherLevelUserId);
}
